#include"str.hh"

using std::cout;
using std::endl;
using std::cin;

int main(void)
{
    String a("abc");
    //构造
    String b(a);
    //拷贝
    cout<<a+b<<endl;
    String c;
    /* cout<<"请输入字符串"<<endl; */
    cin>>c;
    cout<<c<<endl;
    cin>>b;
    cout<<b<<endl;
    b.print();
    a.print();
    b="hello";
    a.print();
    b.print();
    a +=a;
    b +=b;
    cout<<a+b<<endl;

}
